package com.cloudlinkscm.base.authcenter.model.bo;

import com.cloudlinkscm.base.authcenter.model.TenantResource;

import java.util.List;
import java.util.Set;

/**
 * Created by sin on 2017/8/10.
 */
public class NodeAllResourceBO<T> {

	private T positionResource;
	private Set<T> rootResource;
	private Set<T> childrenResource;
	private List<T> distributionResource;

	public NodeAllResourceBO() {
	}

	public NodeAllResourceBO(Set<T> rootResource, Set<T> childrenResource, List<T> distributionResource) {
		this.rootResource = rootResource;
		this.childrenResource = childrenResource;
		this.distributionResource = distributionResource;
	}

	public NodeAllResourceBO(T positionResource, Set<T> rootResource, Set<T> childrenResource, List<T> distributionResource) {
		this.positionResource = positionResource;
		this.rootResource = rootResource;
		this.childrenResource = childrenResource;
		this.distributionResource = distributionResource;
	}

	@Override
	public String toString() {
		return "NodeAllResourceBO{" +
				"positionResource=" + positionResource +
				", rootResource=" + rootResource +
				", childrenResource=" + childrenResource +
				", distributionResource=" + distributionResource +
				'}';
	}

	public T getPositionResource() {
		return positionResource;
	}

	public void setPositionResource(T positionResource) {
		this.positionResource = positionResource;
	}

	public Set<T> getRootResource() {
		return rootResource;
	}

	public void setRootResource(Set<T> rootResource) {
		this.rootResource = rootResource;
	}

	public Set<T> getChildrenResource() {
		return childrenResource;
	}

	public void setChildrenResource(Set<T> childrenResource) {
		this.childrenResource = childrenResource;
	}

	public List<T> getDistributionResource() {
		return distributionResource;
	}

	public void setDistributionResource(List<T> distributionResource) {
		this.distributionResource = distributionResource;
	}
}
